package com.deyang.entity;

/**
 * @author 王德阳
 * @data 创建时间: 2018/5/4 0004
 * @Description 返回基类
 */
public class BaseResponse<T> {

    private boolean ok;
    private String respCode;
    private String message;
    private T data;

    public boolean isOk() {
        return ok;
    }

    public void setOk(boolean ok) {
        this.ok = ok;
    }

    public String getRespCode() {
        return respCode;
    }

    public void setRespCode(String respCode) {
        this.respCode = respCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getData() {
        return data;
    }

    public void setData(T data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "BaseResponse{" +
                "ok=" + ok +
                ", respCode='" + respCode + '\'' +
                ", message='" + message + '\'' +
                ", data=" + data +
                '}';
    }
}
